#ifndef ACTIVATION_UDP_H
#define ACTIVATION_UDP_H

#include <QObject>
#include <QThread>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <QUdpSocket>
#include <QTimer>

#define UEVENT_BUFFER_SIZE 2048

class activation_udp : public QObject
{
    Q_OBJECT
public:
    explicit activation_udp(QObject *parent = 0);
    void init_udpinfo(QString init_serial_num,QString init_hardware_coding);
    void mTimeOut();
    QTimer *timer;


private:
    int port, broadcast_num;
    bool isStarted ;
    QString udp_send_info;
    QUdpSocket *udpSocket;

//signals:


};

#endif // ACTIVATION_UDP_H


